<?php session_start (); if (isset($_SESSION['login']) && isset($_SESSION['mdp']) && $_SESSION['Autorisation'] == 3) {?>
<html>
<head>
<link rel="stylesheet" href="styleadmin.css" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<title>sans titre 1</title>
</head>

<body>

	<div id="container">
		<div id="top">
		<?php include '../header.php'; ?>
		</div>
		
		<div id="leftnav">
		<?php include 'menu-administration.php'; ?>
		</div>
 
		<div id="content">
		<FORM METHOD="POST" ACTION="envoi.php">
		<TABLE BORDER="0">
		
		<!--R�cuperation de la date systeme -->
		<?php
		$Annee = strftime("%Y");
		$Moisnum = strftime("%m");
		$Jour = strftime("%d");
		$Date = "$Annee-$Moisnum-$Jour";
		?>
		
		<tr>
			<th>Nom Article</th>
			<th><input name="Nom"></th>
		</tr>
		<tr>
			<th>Catégorie</th>
			<th><?php include '../include/Categorie.php'; ?></th>
		</tr>
		<tr>
			<th>Auteur</th>
			<th><?php include '../include/Auteur.php'; ?></th>
		</tr>
		<tr>
			<th>Date</th>
			<th><input name="Date" value="<?php echo $Date; ?>"></th>
		</tr>
                <tr>    <th>Contenu</th>
                    <th><textarea cols="70" rows="10"  name="Contenu"></textarea></th>
                </tr>
		</TABLE>
		
		<input type="submit" value="Envoi">
		
		</FORM>
		</div>
 
		<div id="footer">
		<?php include '../footer.php'; ?>
		</div>
 	
	</div>
</body>
</html>
<?php } else { header("Refresh: 0; URL=../index.php"); }?>